package com.turing.post.organization.util;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;
import com.turing.post.util.PCPSWebInput;

/**
 * @author zxp
 * @Dec 18, 2012
 */
@Remote
@Local
public interface SaleBranchBusiness {
	/**
	 * 销售商分支机构新增前验证编号长度
	 * 
	 * @param webInput
	 *            日志记录对象
	 * @param saleBranch
	 *            销售商
	 * @throws PCPSApplicationException
	 */
	public void insertSaleBranchInfo(PCPSWebInput webInput,
			SaleBranch saleBranch) throws PCPSApplicationException;

	/**
	 * 修改销售商分支机构
	 * 
	 * @param webInput
	 *            日志记录对象
	 * @param saleBranch
	 *            销售商分支机构
	 * @throws PCPSApplicationException
	 */
	public void updateSaleBranchInfo(PCPSWebInput webInput,
			SaleBranch saleBranch) throws PCPSApplicationException;

	/**
	 * 修改消息机构预存款下限
	 * 
	 * @param webInput
	 * @param saleBranch
	 * @throws PCPSApplicationException
	 */
	public void updateSaleBranchCreditLowLimit(PCPSWebInput webInput,
			SaleBranch saleBranch) throws PCPSApplicationException;

	// /**
	// * @根据登录用户所属机构查询销售商机构多级下拉列表SaleBranch
	// * @param operBranchNo
	// * @return
	// */
	// public List<OrganTreeList> getSaleBranchListByOperBranchNo(
	// String operBranchNo) throws PCPSApplicationException;

	public void deleteSaleBranchInfo(PCPSWebInput webInput,String branchNo)
			throws PCPSApplicationException;
}
